package com.ceshi.dao;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import com.ceshi.meta.User;

public interface UserDao {
	@Select("select id,userName,password,nickName,userType from person where userName=#{username}")
	@Results({  
	    @Result(id=true,property="userId",column="id"),  
	    @Result(property="userName",column="userName"),  
	    @Result(property="userPassword",column="password"),
	    @Result(property="nickName",column="nickName")
	})  
	public User getUser(String username);
}
